package com.example.fz338.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.fz338.R;
import com.example.fz338.bean.NewsBean;
import com.example.fz338.bean.PythonBean;
import com.example.fz338.utils.NetUtils;

import java.util.List;

import androidx.annotation.NonNull;

public class PythonAdapter extends BaseQuickAdapter<PythonBean, BaseViewHolder> {
    public PythonAdapter(@NonNull List<PythonBean> data) {
        super(R.layout.item_python, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, PythonBean pythonBean) {
        baseViewHolder.setText(R.id.textView, pythonBean.getAddress());
        baseViewHolder.setText(R.id.textView2, pythonBean.getContent());
        baseViewHolder.setText(R.id.textView3, pythonBean.getOpen_class());
    }

}
